package svc

import (
	"github.com/tal-tech/go-zero/core/stores/redis"
	"newwater/app/identity/cmd/rpc/internal/config"
)

type ServiceContext struct {
	Config config.Config
	RedisClient *redis.Redis
}

func NewServiceContext(c config.Config) *ServiceContext {
	return &ServiceContext{
		Config: c,
		RedisClient:redis.NewRedis(c.Redis.Host,c.Redis.Type,c.Redis.Pass),
	}
}
